package com.power.sifa.statistics.api;

import com.plf.common.domain.ResponseDTO;
import com.power.sifa.statistics.model.Apl_note_book;
import com.power.sifa.statistics.model.pageInfo.Apl_note_bookPageInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  每日记录记事本 Feign
 */
public interface IApl_note_bookFeign {

    /**
     * 每日记录记事本分页列表
     */
    @PostMapping("/apl_note_book/list")
    ResponseDTO list(@RequestBody Apl_note_bookPageInfo apl_note_bookPageInfo);

    /**
    * 查看每日记录记事本
    */
    @GetMapping("/apl_note_book/view")
    ResponseDTO view(@RequestParam("id") String id);

    /**
    * 删除每日记录记事本
    */
    @PostMapping("/apl_note_book/delete")
    ResponseDTO delete(@RequestParam("id") String id);

    ///**
    // * 查看每日记录记事本 复合主键使用
    // */
    //@PostMapping("/apl_note_book/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Apl_note_book.Apl_note_bookPK pk);

    /**
     * 修改或保存每日记录记事本
     */
    @PostMapping("/apl_note_book/save")
    ResponseDTO save(@RequestBody Apl_note_book apl_note_book);

    ///**
    // * 删除每日记录记事本 复合主键使用
    // */
    //@PostMapping("/apl_note_book/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Apl_note_book.Apl_note_bookPK pk);

    /**
     * 批量删除每日记录记事本
     */
    @PostMapping("/apl_note_book/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);

     /**
     * 导出excel
     */
    @PostMapping("/apl_note_book/output")
    void output(HttpServletResponse response, @RequestBody Apl_note_bookPageInfo apl_note_bookPageInfo);

     /**
     * 导出excel模板
     */
    @PostMapping("/apl_note_book/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);

     /**
     *	导入excel
     */
    @PostMapping("/apl_note_book/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException ;


    /**
     * 每日记录记事本-查询当前登录用户全部填写的日期
     * @param userid
     * @return
     */
    @PostMapping("/apl_note_book/allRecordTime")
    ResponseDTO allRecordTime(@RequestParam("userid") String userid);
}
